<?php
require_once ("../src/db/connectdatabase.php");

function insertApplyWeb($id, $name, $content) {
	$con = new ConnectDB();
	
	$tbl = "registry_apply_web";
	$fn = array('id' => $id, 'name' => $name, 'content' => $content, 'dateregis' => time());
	return $con -> insert($tbl, $fn);
}

function updateReadApplyWeb($id) {
	$con = new ConnectDB();
	
	$tbl = "registry_apply_web";
	$fn = array('isread' => 1);
	$conf = array('id' => $id);
	return $con -> update($tbl, $fn, $conf);
}

function deleteApplyWeb($id) {
	$con = new ConnectDB();
	
	$tbl = "registry_apply_web";
	$fn = array('delFlg' => 1);
	$conf = array('id' => $id);
	return $con -> update($tbl, $fn, $conf);
}
?>